package com.eclab.exception;

import com.eclab.exception.service.BaseException;

public class BizException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    protected String errorCode;
    protected String errorMessage;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public BizException() {
        super();
    }

    public BizException(BaseException baseException) {
        super(baseException.getResultCode());
    }

    public BizException(String errorCode,String errorMessage) {
        super(errorCode);
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

}
